package com.xbongbong.pro.message.enums;/*/*/

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;
/**
 * web端消息跳转用url
 * name 字段没有使用，不用做国际化 by kaka
 * @author 魏荣杰
 * @date 2019/4/5 10:03
 * @since v1.0
 * @version v1.0
 */
@Getter
public enum  MessageWebPcUrlEnum {
    /**
     * 详情页
     */
    COMMON_DETAIL("enum.messageWebPcUrl.name.common_detail", "/commonDetail", MessagePushRefTypeEnum.COMMON_DETAIL.getAlias()),
    WORK_REPORT_DETAIL("enum.messageWebPcUrl.name.work_report_detail", "/crm/workReport", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    COMMUNICATE_DETAIL("enum.messageWebPcUrl.name.communicate_detail", "/crm/communicate", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    SIGN_IN_DETAIL("enum.messageWebPcUrl.name.sign_in_detail", "/crm/signIn", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    NEARBY_CUSTOMER_DETAIL("enum.messageWebPcUrl.name.nearby_customer_detail", "/crm/nearbyCustomer", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    /**
     * crm 列表页
     */
    CUSTOMER_LIST("enum.messageWebPcUrl.name.customer_list", "/crm/customer", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
//    NEARBY_CUSTOMER_LIST("附近客户列表页", "/crm/nearbyCustomer", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    OPPORTUNITY_LIST("enum.messageWebPcUrl.name.opportunity_list", "/crm/opportunity", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    CONTACT_LIST("enum.messageWebPcUrl.name.contact_list", "/crm/contact", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
//    COMMUNICATE_LIST("跟进记录（供应商跟进记录）列表页", "/crm/communicate", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    WORK_REPORT_LIST("enum.messageWebPcUrl.name.work_report_list", "/crm/workReport", MessagePushRefTypeEnum.SPECIAL_LIST.getAlias()),
    CONTRACT_LIST("enum.messageWebPcUrl.name.contract_list", "/crm/contract", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
//    COMMUNICATE_PLAN_LIST("访客计划列表页", "/crm/communicatePlan", MessagePushRefTypeEnum),
//    SIGN_IN_LIST("签到列表页", "/crm/signIn", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    REFUND_LIST("enum.messageWebPcUrl.name.refund_list", "/crm/returnsAndRefunds", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    QUOTATION_LIST("enum.messageWebPcUrl.name.quotation_list", "/crm/quotation", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 市场管理 列表页
     */
    CLUE_LIST("enum.messageWebPcUrl.name.clue_list", "/market-manage/sales-leads", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    MARKET_ACTIVITY_LIST("enum.messageWebPcUrl.name.market_activity_list", "/market-manage/market-activity", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * jxc 列表页
     */
    SUPPLIER_LIST("enum.messageWebPcUrl.name.supplier_list", "/jxc/supplier", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PURCHASE_CONTRACT_LIST("enum.messageWebPcUrl.name.purchase_contract_list", "/jxc/purchaseContract", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PURCHASE_RETURN_LIST("enum.messageWebPcUrl.name.purchase_return_list", "/jxc/purchaseReturn", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    BOM_LIST("enum.messageWebPcUrl.name.bom_list", "/jxc/BOM", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PRODUCTION_ORDER_LIST("enum.messageWebPcUrl.name.production_order_list", "/jxc/productionOrder", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    ASSEMBLE_LIST("enum.messageWebPcUrl.name.assemble_list", "/jxc/assemble", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    IN_WAREHOUSE_LIST("enum.messageWebPcUrl.name.in_warehouse_list", "/jxc/InWarehouse", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    OUT_WAREHOUSE_LIST("enum.messageWebPcUrl.name.out_warehouse_list", "/jxc/OutWarehouse", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    INVENTORY_LIST("enum.messageWebPcUrl.name.inventory_list", "/jxc/inventory", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    ALLOT_LIST("enum.messageWebPcUrl.name.allot_list", "/jxc/allot", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    WAREHOUSE_LIST("enum.messageWebPcUrl.name.warehouse_list", "/jxc/warehouse", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PRODUCT_STOCK_LIST("enum.messageWebPcUrl.name.product_stock_list", "/jxc/productStock", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    WAIT_PURCHASE_CONTRACT_LIST("enum.messageWebPcUrl.name.wait_purchase_contract_list", "/jxc/waitPurchaseContract", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    WAIT_PRODUCTION_ORDER_LIST("enum.messageWebPcUrl.name.wait_production_order_list", "/jxc/waitProductionOrder", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    WAIT_IN_WAREHOUSE_LIST("enum.messageWebPcUrl.name.wait_in_warehouse_list", "/jxc/waitInWarehouse", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    WAIT_OUT_WAREHOUSE_LIST("enum.messageWebPcUrl.name.wait_out_warehouse_list", "/jxc/waitOutWarehouse", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 资金管理 列表页
     */
    COLLECTION_LIST("enum.messageWebPcUrl.name.collection_list", "/fund/collection", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    INVOICE_LIST("enum.messageWebPcUrl.name.invoice_list", "/fund/invoice", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PAYMENT_LIST("enum.messageWebPcUrl.name.payment_list", "/fund/payment", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    PURCHASE_INVOICE_LIST("enum.messageWebPcUrl.name.purchase_invoice_list", "/fund/invoicePay", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * AI模型 列表页
     */
    MODEL_LIST("enum.messageWebPcUrl.name.model_list", "/ai/model/list/getModelList", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 产品管理
     */
    PRODUCT_MANEGEMENT_LIST("enum.messageWebPcUrl.name.product_manegement_list", "/product/productManagement", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    //销售简报
    SALE_REPORT("enum.messageWebPcUrl.name.sale_report", "/app/salesReport", MessagePushRefTypeEnum.SALES_REPORT.getAlias()),
    /**
     * 审批
     */
    APPROVE("enum.messageWebPcUrl.name.approve", "/app/flowApprove", MessagePushRefTypeEnum.SPECIAL_LIST.getAlias()),
    /**
     * 工作流
     */
    WORKFLOW("enum.messageWebPcUrl.name.approve", "/app/newFlowApprove", MessagePushRefTypeEnum.SPECIAL_LIST.getAlias()),
    /**
     * 工单
     */
    WORK_ORDER_LIST("enum.messageWebPcUrl.name.work_order_list", "/workorder/index", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 工作报告统计
     */
    WORK_REPORT_STATISTIC("enum.messageWebPcUrl.name.work_report_statistic", "/crm/workReport/statistical", MessagePushRefTypeEnum.STATISTIC.getAlias()),
    /**
     * 图表中心
     */
    CHART_CENTER_LIST("enum.messageWebPcUrl.name.work_order_list", "/chart/list", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 数据预警
     */
    CHART_DATA_WARNING_LIST("enum.messageWebPcUrl.name.chart_data_warning_list", "/chartCenter", MessagePushRefTypeEnum.DATA_WARNING.getAlias()),
    /**
     * 自定义表单
     */
    PAAS_LIST("enum.messageWebPcUrl.name.paas_list", "/paas/list", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    /**
     * 经销商 列表页
     */
    DISTRIBUTOR_LIST("enum.messageWebPcUrl.name.distributor_list", "/distributor/distributor", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    DISTRIBUTOR_CONTACT_LIST("enum.messageWebPcUrl.name.distributor_contact_list", "/distributor/contact", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),
    DISTRIBUTOR_COMMUNICATE_DETAIL("enum.messageWebPcUrl.name.distributor_communicate_detail", "/distributor/communicate", MessagePushRefTypeEnum.SPECIAL_DETAIL.getAlias()),
    /**
     * 经销商订货单 详情页
     */
    DISTRIBUTOR_COMMON_DETAIL("enum.messageWebPcUrl.name.distributor_common_detail", "/distributor/commonDetail", MessagePushRefTypeEnum.DISTRIBUTOR.getAlias()),


    /**
     * 对账单详情页
     */
    DISTRIBUTOR_STATEMENT_DETAIL("对账单详情", "/distributor/commonDetail", MessagePushRefTypeEnum.DISTRIBUTOR.getAlias()),
    DISTRIBUTOR_COUPON_LIST("enum.messageWebPcUrl.name.coupon_list", "/activity/activity-index", MessagePushRefTypeEnum.DISTRIBUTOR.getAlias()),

    DISTRIBUTOR_MALL_LIST("enum.messageWebPcUrl.name.mall", "/mall", MessagePushRefTypeEnum.DISTRIBUTOR.getAlias()),

    CUSTOMER_PUBLIC_POOL_MODEL_CHANGE("enum.messageWebPcUrl.name.customer_public_pool_model_change","/Setting/customerSeasPool?customerSeasPoolNotify=1", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),

    CLUE_PUBLIC_POOL_MODEL_CHANGE("enum.messageWebPcUrl.name.clue_public_pool_model_change","/Setting/clueSeasPool?clueSeasPoolNotify=1", MessagePushRefTypeEnum.COMMON_LIST.getAlias()),

    ;

    private String name;
    private String url;
    private String type;

    MessageWebPcUrlEnum(String name, String url, String type) {
        this.name = name;
        this.url = url;
        this.type = type;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
